package com.hoppinzq.api;


import com.hoppinzq.service.http.annotation.HttpApi;
import com.hoppinzq.service.http.annotation.HttpCookie;
import com.hoppinzq.service.http.annotation.HttpHeader;
import com.hoppinzq.service.http.annotation.RequestBody;

public interface WyBuffApi {

    //创建网易buff登录的二维码的id和二维码表示的url
    @HttpApi(url="https://buff.163.com/account/api/qr_code_create",method="post")
    String createQr(@RequestBody String params);

    //获取二维码内容的url
    @HttpApi(url="https://buff.163.com/account/qr_code/view/${code_id}")
    String getQr(String code_id);

    //获取二维码状态
    @HttpApi(url="https://buff.163.com/account/api/qr_code_poll?item_id=${param1}")
    String getQrState(String param1);

    @HttpApi(url="https://buff.163.com/account/api/qr_code_login",method="post")
    String buffQrLogin(@RequestBody String params,@HttpCookie String cookie);

    @HttpApi(url="https://buff.163.com/api/market/goods/sell_order?game=${game}&goods_id=${goods_id}&page_num=${page_num}&sort_by=${sort_by}&mode=${mode}&allow_tradable_cooldown=${allow_tradable_cooldown}")
    String getItem(String game,String goods_id,Integer page_num,String sort_by,
                   String mode,Integer allow_tradable_cooldown,@HttpCookie String cookie);

    //查看博客详情
    @HttpApi(url="http://blog.weichai.com/pc-api/posts/getPostsDetail",method="post")
    String blog(@RequestBody String params,@HttpCookie String cookie);

}